package com.tongtong.stsuserapi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论
 */
@Data
@ApiModel("评论")
@TableName("comment")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Comment implements Serializable {
	private static final long serialVersionUID = -23234912845633L;

	@ApiModelProperty("ID主键")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;

	@ApiModelProperty("评论内容")
	private String content;
	@ApiModelProperty("星级评分")
	private Integer score;
	@ApiModelProperty("逻辑删除变量 (0为删除,1为正常)")
	private Integer state;

	@ApiModelProperty("发布时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date postTime;

	@ApiModelProperty("买家id")
	private Long buyerId;
	@ApiModelProperty("卖家id")
	private Long sellerId;
	@ApiModelProperty("订单id")
	private Long orderId;
}
